{include file="$MODULES_DIR/install/templates/layout_top.html"}
{t assignTo=title}Requirements{/t}
{include file="$MODULES_DIR/install/templates/layout_tabs.html" step=2 title=$title}

<p>{t}This screen shows you if your server meets all the necessary criteria to successfully complete the installation. If any of these items are set to no (highlighted in red), your system does not match the minimum requirements necessary.{/t}</p>

<div class="board">
    <div class="boardTitle">{t}Apache modules{/t}</div>
    <div class="boardSubTitle">{t}Recommanded{/t}</div>
    <div class="boardList">
        <table>
            {foreach from=$apacheModules key=mod item=val name=modules}
            <tr {if $smarty.foreach.modules.last}class="last"{/if}><td class="icon">{if $val}<img src="{$URL_RELATIVE}/bo/install/media/enabled.png" alt="" class="icon16" />{else}<img src="{$URL_RELATIVE}/bo/install/media/disabled.png" alt="" class="icon16" />{/if}</td><td>{$mod}</td></tr>
            {/foreach}
        </table>
    </div>
</div>

<div class="board">
    <div class="boardTitle">{t}PHP Extensions{/t}</div>
    <div class="boardSubTitle">{t}Required{/t}</div>
    <div class="boardList">
        <table>
            {foreach from=$phpExt.required key=ext item=val name=extensions}
            <tr {if $smarty.foreach.extensions.last}class="last"{/if}><td class="icon">{if $val}<img src="{$URL_RELATIVE}/bo/install/media/enabled.png" alt="" class="icon16" />{else}<img src="{$URL_RELATIVE}/bo/install/media/error.png" alt="" class="icon16" />{/if}</td><td {if !$val}class="error"{/if}>{$ext}</td></tr>
            {/foreach}
        </table>
    </div>
    <div class="boardSubTitle">{t}Recommanded{/t}</div>
    <div class="boardList">
        <table>
            {foreach from=$phpExt.recommanded key=ext item=val name=extensions}
            <tr {if $smarty.foreach.extensions.last}class="last"{/if}><td class="icon">{if $val}<img src="{$URL_RELATIVE}/bo/install/media/enabled.png" alt="" class="icon16" />{else}<img src="{$URL_RELATIVE}/bo/install/media/disabled.png" alt="" class="icon16" />{/if}</td><td>{$ext}</td></tr>
            {/foreach}
        </table>
    </div>
</div>

<div class="board">
    <div class="boardTitle">{t}PHP Configuration{/t}</div>
    <div class="boardSubTitle">{t}Required{/t}</div>
    <div class="boardList">
        <table>
            <tr><td class="icon">{if $phpConf.magic_quotes_gpc}<img src="{$URL_RELATIVE}/bo/install/media/enabled.png" alt="" class="icon16" />{else}<img src="{$URL_RELATIVE}/bo/install/media/error.png" alt="" class="icon16" />{/if}</td><td {if !$phpConf.magic_quotes_gpc}class="error"{/if}>magic_quotes_gpc = off</td></tr>
            <tr class="last"><td class="icon">{if $phpConf.register_globals}<img src="{$URL_RELATIVE}/bo/install/media/enabled.png" alt="" class="icon16" />{else}<img src="{$URL_RELATIVE}/bo/install/media/error.png" alt="" class="icon16" />{/if}</td><td {if !$phpConf.register_globals}class="error"{/if}>register_globals = off</td></tr>
        </table>
    </div>
</div>

<div class="clear"></div>

{if count($error) > 0}
<p class="errorDetail">
    {if isset($error.phpConf)}
    {t}Pagizer requires that you change some settings in your php configuration. Please modify you php configuration with the required settings to continue with the installation process.{/t}<br /><br />
    {/if}
    {if isset($error.phpExt)}
    {t}We were unable to find one (or more) required php extension. Please enable the required php extension to continue with the installation process.{/t}<br /><br />
    {/if}
</p>
<div class="centeredButton"><a href="{$URL_RELATIVE}/bo/install/Requirements" class="bigGreyButton">{t}Retry{/t}</a></div>
{else}
<div class="centeredButton"><a href="{$URL_RELATIVE}/bo/install/Language" class="bigGreenButton">{t}Continue{/t} <img src="{$URL_RELATIVE}/bo/install/media/next.png" alt="" /></a></div>
{/if}

{include file="$MODULES_DIR/install/templates/layout_bottom.html"}